package com.mine;

import com.google.common.base.Joiner;
import com.google.common.collect.Lists;
import org.junit.Test;

import java.util.List;

/**
 * TODO
 *
 * @author wangtonggui
 * @version 1.0.0
 * @since 2021/11/09 17:17
 */
public class JoinerDemos {
  @Test
  public void joinTest() {
    List<String> list = Lists.newArrayList("1", "2");
    String join = Joiner.on(",").skipNulls().join(list);
    System.out.println(join);
  }
}
